import numpy as np
import math
import matplotlib.pyplot as plt

#file_name1 = "C/data/Excitation_C_2s22p23P-2s22p3s3P.dat"
#file_name2 = "C/data/Excitation_C_2s22p23P-2s22p3s3P_lxcat.dat"

file_name1 = "C/data/Excitation_C_2s22p23P-2s22p3d1F.dat"
file_name2 = "C/data/Excitation_C_2s22p23P-2s22p3d1F_lxcat.dat"


cs1 = np.loadtxt(file_name1)
cs2 = np.loadtxt(file_name2)

print("cs1 shape: ", cs1.shape)
print("cs2 shape: ", cs2.shape)

plt.plot(cs1[:,0], cs1[:,1], label = "1")
plt.plot(cs2[:,0], cs2[:,1], label = "2")

plt.legend()

plt.savefig("compare_cross_section.png")
plt.show()
